package com.yijiaganxi.services.api.notice;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yijiaganxi.common.entity.notice.YjgxNotice;
import org.yijiaganxi.common.res.R;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import org.yijiaganxi.common.GlobalConstants;
import com.yijiaganxi.services.service.notice.YjgxNoticeService;

@Validated
@RestController
@RequestMapping("/services/yjgxNotice/"+GlobalConstants.WECHAT_FLAG)
public class YjgxNoticeApi {

	@Autowired
	private YjgxNoticeService  noticeService;
	
	/**
	 * 查询首页公告
	 * @return
	 */
	@GetMapping("getAllNoticeListApi")
	private R getAllNoticeListApi() {
		return R.opertionListResponse( noticeService.selectList(new EntityWrapper<YjgxNotice>()));
	}
	
}
